<?php defined('_JEXEC') or die('Restricted access'); ?>


<div id="pdf_naglowek"> Pracownicy <?php echo $this->items[0]->del ? ' archiwalni':' aktualni' ?> - zestaw zbiorczy </div>
	<table class="adminlist" cellpadding="1">
		<thead>
			<tr>
				<th width="2%" class="title">
					lp
				</th>
				<th class="title">
					Nazwa pracownika
				</th>
				<th width="12%" class="title">
					Groupa
				</th>
				<th width="20%" class="title">
					Adres E-Mail
				</th>
				<th width="12%" class="title">
					Ostatnia wizyta
				</th>
			</tr>
		</thead>
		<tbody>
		<?php
			$k = 0;
			for ($i=0, $n=count( $this->items ); $i < $n; $i++)
			{
				$row 	=& $this->items[$i];


				if ($row->lastvisitDate == "0000-00-00 00:00:00") {
					$lvisit = JText::_( 'Never' );
				} else {
					$lvisit	= JHTML::_('date', $row->lastvisitDate, '%Y-%m-%d %H:%M:%S');
				}
			?>
			<tr class="<?php echo "row$k"; ?>">
				<td>
					<?php echo $i+1+$this->pagination->limitstart;?>
				</td>
				<td>
					<?php echo $row->name; ?>
				</td>
				<td>
					<?php echo JText::_( $row->groupname ); ?>
				</td>
				<td>
					<?php echo $row->email; ?>
				</td>
				<td nowrap="nowrap">
					<?php echo $lvisit; ?>
				</td>
			</tr>
			<?php
				$k = 1 - $k;
				}
			?>
		</tbody>
	</table>
